export default {
  // 基本格式化设置
  printWidth: 80,
  tabWidth: 2,
  useTabs: false,
  semi: true,
  singleQuote: true,
  quoteProps: 'as-needed',

  // 数组和对象
  trailingComma: 'es5',
  bracketSpacing: true,
  bracketSameLine: false,

  // 箭头函数
  arrowParens: 'avoid',

  // 换行设置
  endOfLine: 'lf',
  proseWrap: 'preserve',

  // HTML 和 Markdown
  htmlWhitespaceSensitivity: 'css',

  // 文件覆盖
  overrides: [
    {
      files: '*.json',
      options: {
        singleQuote: false,
      },
    },
    {
      files: '*.md',
      options: {
        proseWrap: 'always',
        printWidth: 80,
      },
    },
  ],
};
